<template>
<div>
<a v-bind:href="url">我的空间地址</a>
  <img :src="imgUrl"/>
  <h1>count值为{{count}}</h1>
<button v-on:click="count=count+1">点击就送</button>
  <button v-on:click="addCount">+1</button>
  <button v-on:click="addCount5(5)">+5</button>
  <button @click="addCount">+1</button>
</div>
</template>

<script>
export default {

  data(){
    return {
      url:"https://space.bilibili.com/93722921",
      imgUrl:"https://s1.hdslb.com/bfs/static/jinkela/space/assets/theme-trigger-new.png",
      count:0
    }
  },
  methods:{
    addCount(){
      this.count++
    },
    addCount5(num){
      this.count+=num
    }
  }
}
</script>

<style scoped>


</style>